]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
folderIcon: Update folder icon after dropping
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 28 Jun 2019 22:49:18 +0000 (19:49 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 8 Aug 2019 12:11:59 +0000 (09:11 -0300)
After dropping an application into the folder icon, the
list of applications is updated but the folder icon itself
is not.

Introduce BaseIcon.update() and call it from FolderIcon
when redisplaying.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/664

js/ui/appDisplay.js
js/ui/iconGrid.js

index 5b42f2b10d88d59829b33dc7fe6e3c4de93e3faf..9b2519348e2d822de57eb8030e790d52bd6f757f 100644 (file)
@@ -1331,6 +1331,7 @@ var FolderIcon = class FolderIcon {
     _redisplay() {
         this._updateName();
         this.actor.visible = this.view.getAllItems().length > 0;
+        this.icon.update();
         this.emit('apps-changed');
     }
 
index cf6b48b208fc3ce329cd6edfd12fe7901a5abd5e..bb6829673e46bf3349ac1281a87a8c0e9a32e0d1 100644 (file)
@@ -141,6 +141,10 @@ class BaseIcon extends St.Bin {
         // animating.
         zoomOutActor(this.child);
     }
+
+    update() {
+        this._createIconTexture(this.iconSize);
+    }
 });
 
 function clamp(value, min, max) {